﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MQTTWPFServer
{
    internal class Topic : ObservableObject
    {
        private string title;
        public string Title
        {
            get => title;
            set => SetProperty(ref title, value);
        }

        private int subscribes;
        public int Subscribes
        {
            get => subscribes;
            set => SetProperty(ref  subscribes, value);
        }

        /// <summary>
        /// 订阅者集合(ClientId集合)
        /// </summary>
        public ObservableCollection<string> Subscribers { get; } = new ObservableCollection<string>();
    }
}
